package com.aaa.sys.mapper;

import com.aaa.sys.entity.LoginLog;
import com.aaa.sys.vo.LoginLogResult;
import com.aaa.sys.vo.UserPosition;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 登录记录 Mapper 接口
 * </p>
 *
 * @author ykq
 * @since 2020-12-08
 */
public interface LoginLogMapper extends BaseMapper<LoginLog> {
    IPage<LoginLogResult> findByCondition(IPage<LoginLogResult> page, @Param(Constants.WRAPPER) QueryWrapper<LoginLogResult> queryWrapper);

    void clearLoginLog();
}
